<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
<title>
EPrice ~ Busqueda de Grupos
</title>
<link href="css/estilos.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript" type="">
function enviaParam(i, j){
  try{
    window.opener.document.getElementById('str_idGrupo').value=i;
    window.opener.document.getElementById('str_descGrupo').value=j;
    window.opener.focus();
    window.opener.document.getElementById('precioListaForm').submit();
  }catch(e){
    alert(e);
  }finally{
    window.close();
  }
}
</script>
<body bgcolor="#ffffff" onLoad="window.focus(); document.getElementById('str_search').focus();">
<html:form action="/buscarGrupo" method="get">
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="tabla">
  <tr>
    <td colspan="4" class="encabezadoTabla" align="center" height="20" valign="top">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="40%" height="60%" align="right"><html:img width="17" height="23" src="images/img_loginFlecha.gif" alt=""/></td>
          <td width="60%" class="font_general"><strong>&nbsp;&nbsp;Busqueda de Grupos</strong></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td colspan="4" valign="top" height="20">
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" class="font_general colorLabel">Codigo/Cliente</td>
          <td align="left" class="colorCampo font_general"><html:hidden value="buscarGrupo" property="action"/><html:text property="str_search" styleClass="textfield" maxlength="15" size="15"/></td>
          <td align="center" class="colorCampo font_general"><html:submit styleClass="boton" value="Buscar" property=""/></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="50" align="center" class="encabezado_col font_general">&nbsp;</td>
    <td width="150" align="center" class="encabezado_col font_general">Descripcion</td>
    <td width="50" align="center" class="encabezado_col font_general">Linea</td>
  </tr>
    <logic:iterate id="grupo" name="arrL_grupo" indexId="int_i">
      <tr>
        <td align="center" class="<%=int_i.intValue()%2==0?"":"im"%>par font_general"><a href="#" onclick='enviaParam("<bean:write name="grupo" property="str_idGrupo"/>", "<bean:write name="grupo" property="str_descGrupo"/>");'><html:img width="15" height="15" border="0" src="images/img_add.gif" alt=""/></a></td>
        <td class="<%=int_i.intValue()%2==0?"":"im"%>par font_general">&nbsp;<bean:write name="grupo" property="str_descGrupo"/></td>
        <td align="center" class="<%=int_i.intValue()%2==0?"":"im"%>par font_general"><bean:write name="grupo" property="str_lineaGrupo"/></td>
      </tr>
    </logic:iterate>
</table>
</html:form>
</body>
</html:html>
